package com.bwie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bwie.utils.R;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Maintain;
import com.bwie.mapper.MaintainMapper;
import com.bwie.service.MaintainService;
@Service
public class MaintainServiceImpl extends ServiceImpl<MaintainMapper, Maintain> implements MaintainService{

    @Autowired
    private MaintainMapper maintainMapper;

    @Override
    public R getMaintain(Integer repaisId) {
        List<Maintain> maintains = maintainMapper.getMaintain(repaisId);
        return R.OK(maintains);
    }
}
